<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./echatrs.main.js"></script>
</head>

<body>
    <div id="id" style="width: 600px;height: 500px;margin: auto;">
        <div id="main" style="width: 100%;height: 100%;"></div>
    </div>
</body>
<script>
    var chartDom = document.getElementById('main');
    var myChart = echarts.init(chartDom);
    var option;

    option = {
        color:['#5d85e5','#7db9c3','#6aa264'],
        title: {
            text: '就业质量',
            subtext: '\n',
            textStyle: {
                fontWeight: 'bolder',
                fontSize: 28,
            }
        },
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'shadow'
            }
        },
        legend: {},
        xAxis: {
            // type: 'value',
            // boundaryGap: [0, 0.01]
        },
        yAxis: {
            type: 'category',
            data: ['C2110班']
        },
        series: [{
                name: 'C2110A班',
                type: 'bar',
                barGap: '0%',
                data: [18203, 23489, 29034, 104970, 131744, 630230],
            },
            {
                name: 'C2110班',
                type: 'bar',
                data: [19325, 23438, 31000, 121594, 134141, 681807],
                barGap: '0%',
            },
            {
                name: 'C2110C班',
                type: 'bar',
                barGap: '0%',
                data: [19325, 23438, 31000, 121594, 134141, 681807],

            }
        ]
    };

    option && myChart.setOption(option);
</script>

</html>